package com.qlk.test.vorder.rest;

import org.junit.Test;
import org.springframework.util.Assert;

import com.qlk.common.client.AbstractClient;
import com.qlk.test.vorder.rest.dto.ReserveSession;
import com.qlk.test.vorder.rest.request.ReserveSessionRequest;
import com.qlk.test.vorder.rest.response.ReserveSessionResponse;
import com.qlk.test.vorder.rest.Urls;

/**
 * ReserveSessionResource单元测试
 * 
 * @author zhaoyanan
 * @version 2016-7-28 14:14:01
 * 
 */
public class ReserveSessionResourceTestCase extends AbstractClient {

	@Test
	public void testGetReserveSession() {
		String url = Urls.API_DOMAIN + "/reserveSession/getReserveSession";

		ReserveSessionRequest request = new ReserveSessionRequest();
		request.setId(1l);
		ReserveSessionResponse response = super.getRestTemplate().postForObject(url, request, ReserveSessionResponse.class);
		Assert.notNull(response);
		ReserveSession reserveSession = super.getResult(response);
		Assert.notNull(reserveSession);
	}
}
